home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Technology Seed / Mac Tech Seed May '97.toast / Firewire 1.0 DDK / Source / VDig / MakeFile < prev   
Encoding:
Makefile  |  1997-03-28  |  5.4 KB  |  188 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for VDig sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #      <FW26>     3/27/97    GG        Bumped version to 1.0 GM.
  13. #      <FW25>     3/19/97    GG        Bumped version to 1.0b3.
  14. #      <FW24>     3/12/97    GG        Bumped version to 1.0b2.
  15. #      <FW23>     2/19/97    GG        Bumped version to 1.0a3.
  16. #      <FW22>     2/11/97    GG        Bumped copyright to 1997.
  17. #      <FW21>     2/11/97    GG        Bumped version to 1.0a2.
  18. #      <FW20>      2/4/97    GG        Bumped version to 1.0d24.
  19. #      <FW19>     1/28/97    GG        Bumped version to 1.0d23.
  20. #      <FW18>     1/21/97    GG        Bumped version to 1.0d22.
  21. #      <FW17>      1/2/97    GG        Bumped Version to 1.0d21.
  22. #      <FW16>    12/20/96    GG        Bumped Version to 1.0d20.
  23. #      <FW15>     12/6/96    GG        Bumped version to 1.0d19.
  24. #      <FW14>    11/27/96    ES        Removed links to DevNLib.
  25. #      <FW13>    11/14/96    GG        Bumped version to 1.0d18.
  26. #      <FW12>    10/31/96    ES        Bumped version to 1.0d17.
  27. #      <FW11>    10/16/96    ES        Bumped version to 1.0d16.
  28. #      <FW10>     10/2/96    ES        Bumped version to 1.0d15.
  29. #       <FW9>     9/12/96    ES        Bumped version to 1.0d14.
  30. #       <FW8>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  31. #                                    ETO #20 and forward.
  32. #       <FW7>     7/11/96    ES        Bumped version to 1.0d13.
  33. #       <FW6>     7/11/96    ES        Bumped version to 1.0d12.
  34. #       <FW5>     6/24/96    ES        Bumped version to 1.0d11.
  35. #       <FW4>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  36. #       <FW3>     6/20/96    ES        Changed FWCCMDriverRootDir to VDigRootDir.
  37. #       <FW2>     6/20/96    ES        Filled in contains and written by fields.
  38. #       <FW1>     6/20/96    ES        first checked in
  39. #
  40. #
  41.  
  42. ################################################################################
  43. #
  44. # Define some directories
  45. #
  46.  
  47. VDigRootDir                    =    :
  48.  
  49. FWSampleDir                    =    {VDigRootDir}::
  50.  
  51. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  52. FWCCMInterfacesDir            =    {VDigRootDir}Interfaces:
  53.  
  54. SysLibrariesDir                =    {FWSampleDir}Libraries:
  55. FWCCMLibrariesDir            =    {VDigRootDir}Libraries:
  56.  
  57. FWCCMDriverSourceDir        =    {VDigRootDir}FWCCMDriver:
  58.  
  59. BuildResultsDir                =    {FWSampleDir}BuildResults:
  60. ObjectsDir                    =    {BuildResultsDir}Objects:
  61. ExtensionsDir                =    {BuildResultsDir}Extensions:
  62.  
  63. ################################################################################
  64. #
  65. # Define version info
  66. #
  67.  
  68. FWVersion                    =    1
  69. FWRevision                    =    0
  70. FWBuildStage                =    Final
  71. FWBuildNumber                =    2
  72. FWShortVersionString        =    '"1.0 GM"'
  73. FWLongVersionString            =    '"1.0 GM, © 1995-97 Apple Computer, Inc."'
  74.  
  75.  
  76. ################################################################################
  77. #
  78. # Define stuff for 68K compilation
  79. #
  80.  
  81. C68KOptions                    =    -d ccompile                                    ∂
  82.                                 -b                                            ∂
  83.                                 -r                                            ∂
  84.                                 -i "{SysInterfaces}"                        ∂
  85.                                 -i "{CIncludes}"                            ∂
  86.                                 -mc68020
  87.  
  88. Asm68K                        =    Asm
  89.  
  90. C68K                        =    SC
  91.  
  92. Link68K                        =    Link
  93.  
  94.  
  95. ################################################################################
  96. #
  97. # Define stuff for PowerPC compilation
  98. #
  99.  
  100. MrCOptions                    =    -opt speed                                    ∂
  101.                                 -w 2,7,35                                    ∂
  102.                                 -d TRUE=1                                    ∂
  103.                                 -d FALSE=0                                    ∂
  104.                                 -i "{SysInterfacesDir}"                        ∂
  105.                                 -i "{FWCCMInterfacesDir}"                    ∂
  106.                                 -i "{CIncludes}"
  107.  
  108. CPPCOptions                    =    {MrCOptions}
  109.  
  110. AsmPPC                        =    PPCAsm
  111.  
  112. AsmPPCOptions                =    -dialect PowerPC                            ∂
  113.                                 -o {Targ}
  114.  
  115. CPPC                        =    MrC
  116.  
  117. LinkPPC                        =    PPCLink
  118.  
  119.  
  120. ################################################################################
  121. #
  122. # Define stuff for rez
  123. #
  124.  
  125. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  126.                                 -d FWRevision={FWRevision}                    ∂
  127.                                 -d FWBuildStage={FWBuildStage}                ∂
  128.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  129.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  130.                                 -d FWLongVersionString={FWLongVersionString}
  131.  
  132.  
  133. ################################################################################
  134. #
  135. # FireWire CCM driver
  136. #
  137.  
  138. "{ObjectsDir}FWCCMDriver.c.o"    ƒ                                            ∂
  139.                             "{FWCCMDriverSourceDir}FWCCMDriver.c"            ∂
  140.                             "{FWCCMDriverSourceDir}FWCCMDriver.h"
  141.     {CPPC}                                                                    ∂
  142.         "{FWCCMDriverSourceDir}FWCCMDriver.c"                                 ∂
  143.         -i "{FWCCMDriverSourceDir}"                                            ∂
  144.         {CPPCOptions}                                                        ∂
  145.         -o {Targ}
  146.  
  147. "{ExtensionsDir}FWCCMDriver"    ƒƒ                                            ∂
  148.                             "{ObjectsDir}FWCCMDriver.c.o"                    ∂
  149.                             "{FWCCMDriverSourceDir}FWCCMDriver.exp"
  150.     {LinkPPC}                                                                ∂
  151.         -t 'ndrv'                                                            ∂
  152.         -c 'fw  '                                                            ∂
  153.         -xm sharedlibrary                                                    ∂
  154.         -w                                                                     ∂
  155.         -@export "{FWCCMDriverSourceDir}FWCCMDriver.exp"                    ∂
  156.         -main ComponentInterface                                            ∂
  157.         -term FWCCMTerminate                                                ∂
  158.         "{ObjectsDir}FWCCMDriver.c.o"                                        ∂
  159.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  160.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  161.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  162.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  163.         "{SysLibrariesDir}PCILib"                                            ∂
  164.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  165.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  166.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  167.         -librename StdCLib.xcoff=StdCLib                                    ∂
  168.          -o {Targ}
  169.  
  170. "{ExtensionsDir}FWCCMDriver"    ƒƒ                                            ∂
  171.                             "{ObjectsDir}FWCCMDriver.c.o"                    ∂
  172.                             "{FWCCMDriverSourceDir}FWCCMDriver.exp"            ∂
  173.                             "{FWCCMDriverSourceDir}FWCCMDriver.r"            ∂
  174.                             "{VDigRootDir}MakeFile"
  175.     Rez                                                                        ∂
  176.         {RezOptions}                                                        ∂
  177.         "{FWCCMDriverSourceDir}FWCCMDriver.r"                                ∂
  178.         -a                                                                    ∂
  179.         -o {Targ}
  180.  
  181.  
  182. FWCCMDriver    ƒ                                                                ∂
  183.                         "{ExtensionsDir}FWCCMDriver"
  184.  
  185.  
  186. VDig    ƒ                                                                    ∂
  187.                         FWCCMDriver
  188.